package create.factory.factory;

/**
 * @AUTHOR LYF
 * @DATE 2022/3/19
 * @VERSION 1.0
 * @DESC
 */
public class AFactory implements ProductFactory{
    private int count=1;//生产计数器

    @Override
    public Product produce() {
        return new AProduct("A-"+count++);
    }
}
